package com.ruoyi.api.industry;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.dto.CIndustryTreeDTO;
import com.ruoyi.system.service.ICIndustryService;
import com.ruoyi.system.service.ICrmGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/cindustry")
public class CIndustryController {

    @Autowired
    private ICIndustryService cIndustryServiceImpl;

    @GetMapping("/getCIndustryTree")
    public AjaxResult getCIndustryTree(){
        List<CIndustryTreeDTO> cIndustryTree = cIndustryServiceImpl.getCIndustryTree();
        return AjaxResult.success(cIndustryTree);
    }
}
